<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<jsp:include page="../comun/headHTML.jsp">
			<jsp:param name="incluirCalendario" value="si" />
			<jsp:param name="incluirView" value="no" />
		</jsp:include>
	</head>
	<body>
		<div id="wrap">

			<div id="header">
				<div id="logo"></div>
				<jsp:include page="../comun/menuPrincipal.jsp" flush="true"/>
			</div>
			
			<div id="content">
				<p>${resultadoOperacion} descripcion: ${descripcionRegistro}</p>
				<input id="result" name="result" class="element text medium" type="text" maxlength="255" value="${resultadoOperacion}"/>
				
				<div id="form_container">
			
					<form id="insertarCargo" method="post" action="/sedcco/app/adminsistem" class="appnitro" >
							<input id="action" name="action" type="hidden" value="insertarCargo"/>
						<fieldset> 
								<legend><h2>Insertar Cargo</h2></legend>
													
							
							<ul >
									<li id="li_7" >
										<label class="description" for="cargo">Cargo </label>
										<div>
											<input id="cargo" name="cargo" class="element text medium" type="text" maxlength="255" value=""/> 
										</div> 
									</li>
									
									<li id="li_4" >
										<label class="description" for="fechaInicial">Fecha de Inicio </label>
										<span>
											<input id="element_4_1" name="fechaInicial" class="element text" size="2" maxlength="2" value="" type="text"/> 
											<label for="element_4_1">MM</label>
										</span>
										<span>
											<input id="element_4_2" name="fechaInicial" class="element text" size="2" maxlength="2" value="" type="text"/> 
											<label for="element_4_2">DD</label>
										</span>
										<span>
											<input id="element_4_3" name="fechaInicial" class="element text" size="4" maxlength="4" value="" type="text"/>
											<label for="element_4_3">YYYY</label>
										</span>
									
										<span id="calendar_4">
											<img id="cal_img_4" class="datepicker" src="${applicationScope.rutaImagenes}calendar.gif" alt="Pick a date.">	
										</span>
										<script type="text/javascript">
											Calendar.setup({
											inputField	 : "element_4_3",
											baseField    : "element_4",
											displayArea  : "calendar_4",
											button		 : "cal_img_4",
											ifFormat	 : "%B %e, %Y",
											onSelect	 : selectDate
											});
										</script>
									 
									</li>
									
									
									<li id="li_11" >
										<label class="description" for="nivel">Nivel </label>
										<div>
											<select class="element select medium" id="nivel" name="nivel"> 
													<option value="" selected="selected"></option>
													<c:forEach items="${listaNivel}" var="nivel">
													   <option value="${nivel.idNivel}" >${nivel.nivel}</option>
													</c:forEach>
											</select>
										</div> 
									</li>
									
									<li id="li_11" >
										<label class="description" for="dependencia">Dependencia </label>
										<div>
											<select class="element select medium" id="dependencia" name="dependencia"> 
													<option value="" selected="selected"></option>
													<c:forEach items="${listaDependencia}" var="dependencia">
													   <option value="${dependencia.idDependencia}" >${dependencia.descripcion}</option>
													</c:forEach>
											</select>
										</div> 
									</li>
									
									<div class="buttons" align = "left"> 	
										
										<input id="saveForm" class="button_text" type="submit" name="agregar" value="Agregar" />
									
									</div>
									<div class="buttonsc" align = "center">
										
										<input id="saveForm" class="button_text" type="submit" name="cancelar" value="Cancelar" />
										
									</div>
										
							</ul>
							
						</fieldset> 
						
					</form>	
				
			</div>
				
		</div>
				
		
			
			<jsp:include page="../comun/pie.jsp" flush="true"/>

		</div>
	</body>
</html>